import request from '@/utils/request'

// 查询订单簿列表
export function listSw_api_orderbook_bak(query) {
  return request({
    url: '/sw_api_orderbook/sw_api_orderbook_bak/list',
    method: 'get',
    params: query
  })
}

// 查询订单簿详细
export function getSw_api_orderbook_bak(id) {
  return request({
    url: '/sw_api_orderbook/sw_api_orderbook_bak/' + id,
    method: 'get'
  })
}

// 新增订单簿
export function addSw_api_orderbook_bak(data) {
  return request({
    url: '/sw_api_orderbook/sw_api_orderbook_bak',
    method: 'post',
    data: data
  })
}

// 修改订单簿
export function updateSw_api_orderbook_bak(data) {
  return request({
    url: '/sw_api_orderbook/sw_api_orderbook_bak',
    method: 'put',
    data: data
  })
}

// 删除订单簿
export function delSw_api_orderbook_bak(id) {
  return request({
    url: '/sw_api_orderbook/sw_api_orderbook_bak/' + id,
    method: 'delete'
  })
}
